﻿export default url => {
    const crud = window.$crud(url)
    // 启用插件
    crud.enable = (id) => window.$axios({
        url: `plugin/pluginConfig/enable/${id}`,
        method: 'put'
    })
    // 卸载插件
    crud.uninstall = (id) => window.$axios({
        url: `plugin/pluginConfig/Uninstall/${id}`,
        method: 'put'
    })
    // 获取插件信息
    crud.getInfo = (id) => window.$axios({
        url: `plugin/pluginConfig/info/${id}`,
        method: 'get'
    })
    return {
        ...crud
    }
}